
var path = require('path')
var util = require('./libs/util')
var wechat_file = path.join(__dirname,'./config/wechat.txt')

var config = {
	wechat:{
		appID:'wx7e3eba77125cbafb',
		appSecret:'c9220cd9996adbbcf9e8410d31030ca9',
		token:'taohh',
		getAccessToken:function () {
			return util.readFileAsync(wechat_file)
		},
		saveAccessToken:function(data){
			data = JSON.stringify(data)
			return util.writeFileAsync(wechat_file,data)
		}
	}
}

module.exports = config